package com.sc.pb_user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author PBObserver
 * @since 2025-09-19 05:02:16
 */
@Getter
@Setter
@TableName("pb_member")
public class PbMember {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 逻辑外键，关联pb_user.id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 会员类型：month-月卡, season-季卡, year-年卡
     */
    @TableField("member_type")
    private String memberType;

    /**
     * 生效时间
     */
    @TableField("start_time")
    private Date startTime;

    /**
     * 过期时间
     */
    @TableField("end_time")
    private Date endTime;

    /**
     * 状态：1-正常，0-过期
     */
    @TableField("status")
    private Boolean status;
}
